package com.example.jwtauthdemo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Long id;
    private String username;
    private String password;
    private String phone;
    private String nickname;
    private String avatar;
    private Integer gender;
    private Integer age;
    private Integer role; // 0-学生，1-教师
    private String realName;
    private String idCard;
    private Integer realNameVerified;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer classId;
    private String email;
}
